import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './style.css';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import locale from 'element-plus/es/locale/lang/zh-cn';
import utils from './utils';
import { initRequest } from './utils/request';

const app = createApp(App);

// 全局挂载
app.config.globalProperties.$utils = utils;
app.config.globalProperties.$axios = initRequest(router);

app.use(router)
  .use(store)
  .use(ElementPlus, { zIndex: 3000, locale })
  .mount('#app');
